import axios from 'axios'

export const request = axios.create({
    timeout: 1000 * 10,
})

request.interceptors.response.use( (response) =>{
    if (response.status){
        return response.data
    }
    return Promise.resolve(response)
},(error) => {
    return Promise.resolve(error)
})